package com.bjsxt.mapper;

import com.bjsxt.pojo.Role;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface RoleMapper {
    @Select("select * from t_role")
    List<Role> selectAllRole();

    Integer insertRole(Role role);

    @Update("update t_role set rname=#{rname},rdesc=#{rdesc} where rid=#{rid}")
    Integer updateRole(Role role);
}
